﻿@model ChangePassword
@{
    ViewBag.Title = "修改密码";
    var userName = SessionHelper.CurrUser.UserName;
    
}
<style type="text/css">
    .table
    {
        width: 50%;
        margin: 0 auto;
        color: #666666;
    }
    .table td
    {
        line-height: 25px;
        padding: 3px;
    }
    .text-box
    {
        width: 150px;
    }
</style>
<div class="Contentbox">
    <div id="con_two_1">
        @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "GetMsg" })) {
            @Html.ValidationSummary(true)
            <table class="table" cellspacing="1" border="0">
                <tbody>
                    <tr>
                        <td style="text-align: right">
                            用户名：
                        </td>
                        <td style="text-align: left">
                            @userName
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            @Html.DisplayNameFor(m => m.OldPassword)
                        </td>
                        <td style="text-align: left">
                            @Html.EditorFor(m => m.OldPassword)
                            @Html.ValidationMessageFor(m => m.OldPassword)
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            @Html.DisplayNameFor(m => m.NewPassword)
                        </td>
                        <td style="text-align: left">
                            @Html.EditorFor(m => m.NewPassword)
                            @Html.ValidationMessageFor(m => m.NewPassword)
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right">
                            @Html.DisplayNameFor(m => m.ConfirmPassword)
                        </td>
                        <td style="text-align: left">
                            @Html.EditorFor(m => m.ConfirmPassword)
                            @Html.ValidationMessageFor(m => m.ConfirmPassword)
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <input type="submit" class="button" id="btn_submit" value="提 交" name="btn_submit" />
                        </td>
                    </tr>
                </tbody>
            </table>
            
        }
    </div>
</div>
@section scripts{
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript">
        function GetMsg(data)
        {
            alert(data);
        }
    </script>
}
